package com.atguigu.yygh.msm.controller;

import com.atguigu.yygh.hosp.result.R;
import com.atguigu.yygh.hosp.util.HttpUtils;
import com.atguigu.yygh.model.user.UserInfo;
import com.atguigu.yygh.msm.service.MsmService;
import org.apache.http.HttpResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/api/msm")
public class MsmController {
    @Autowired
    MsmService msmService;

    @GetMapping("/sendCode/{phone}")
    public R sendCode(@PathVariable("phone") String phone){
        msmService.sendCode(phone);
        return R.ok();
    }

}
